package rita.grammar.simplesentence;

import java.util.ArrayList;
import java.util.List;

import codeblocks.Block;
import codeblocks.BlockConnector;

import renderable.RenderableBlock;
import rita.grammar.Command;
import rita.grammar.JavaCodeGenerator;
import rita.grammar.exception.IncompleteSentenceException;


/**
 * Esta clase representa la invocacion a un getter de una variable
 * 
 * @author Vanessa Aybar Rosales
 * */
public class Getter extends Command {

	@Override
	public List<StringBuffer> render(RenderableBlock rBlock)
			throws IncompleteSentenceException {
		List<StringBuffer> returnedRenderList = new ArrayList<StringBuffer>();
		StringBuffer sb1 = new StringBuffer(rBlock.getBlock().getBlockLabel());
		returnedRenderList.add(sb1);
		return returnedRenderList;
	}

}
